<?php get_header();?>
<div class="layui-content<?php echo qzdy_prevent_theme(); ?>">
<div class="layui-container<?php echo qzdy_prevent_theme(); ?>">
<div class="layui-row layui-col-space15 main<?php echo qzdy_prevent_theme(); ?>">
<?php if(_qzdy('opt-index-sidebar-position') == 'opt-sidebar-left'){?>
<?php get_sidebar();?>
<?php } ?>
<div class="layui-col-md9 layui-col-lg9">
    
       <?php require get_template_directory() . '/home-yao.php'; ?>
    
    
                 <?php while (have_posts()) : the_post(); ?>
                 <div class="title-article list-card item-box<?php echo qzdy_prevent_theme(); ?>">
                <div class="index-post-img-small"><a href="<?php the_permalink() ?>">
            <div title="<?php the_title(); ?>" class="item-thumb-small lazy commodity-img" data-original="<?php $gettesheimg = wp_get_attachment_image_src( get_post_thumbnail_id());if(!empty($gettesheimg)){echo $gettesheimg[0];}else{echo catch_first_image(); }?>" style="background-image: url()"><span class="layui-badge layui-bg-cyan x"><?php the_time('Y/n/j'); ?></span></div>
            </a></div>
    <div class="index-post-text-small<?php echo qzdy_prevent_theme(); ?>"><h2  title="<?php the_title(); ?>" class="m-t-none text-ellipsis index-post-title text-title"><?php if (is_sticky()) {echo  '<span class="layui-badge">推荐</span>';} ?><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    <p class="summary l-h-2x text-muted<?php echo qzdy_prevent_theme(); ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></p>
    <div class="line line-lg b-b b-light"></div>
    <div class="text-muted post-item-foot-icon text-ellipsis list-inline">
<li class="viewfloat">
<i class="layui-icon layui-icon-slider"></i><a href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?> </a></li><li><i class="layui-icon layui-icon-log<?php echo qzdy_prevent_theme(); ?>"></i><?php the_time('Y/n/j '); ?></li><li><i class="layui-icon layui-icon-user"></i><a href=""><?php the_author(); ?></a></li><li><span class="view"><i class="layui-icon layui-icon-fire"></i><?php post_views(' ', ''); ?></span></li></div></div></div>
          <?php endwhile;?> 
    <!--分页-->
             <div class="pagination" id="pagenavi">
              <p>  <?php lingfeng_pagenavi();?></p>
                            </div>
            <!--分页-->
        </div>
       <?php
	if(_qzdy('opt-index-sidebar-position') == 'opt-sidebar-right'){
?>
        <?php get_sidebar();?>
        <?php } ?>
</div>
</div>
</div>
</div>
<!--底部版权-->
<?php get_footer();?>